<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        ////+-*/=-()&^%$#@!~}{|""'':;?/
        function geteasy (obj) {
            let arr = []
            for (let k in obj) {arr.push(`${k}=${obj[k]}`)}
            let str = arr.join('&')
            return str
        }
        // geteasy({
        //     uname : 'mane',
        //     age : 18
        // })
        function easyget (arr) {
            let obj = {}
             arr.split('&').forEach((item) => {
               let str = item.split('=')
               obj[str[0]] = str[1]
            });
            return obj
        }
        let fff = 'uname=mane&age=18'
        console.log(easyget(fff));
        
    </script>
</body>
</html>